package com.itheima;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.ValidateCodeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:config/*")
public class test {

    @Reference
    ValidateCodeService validateCodeService;


    @Test
    public void test1(){
        validateCodeService.sendValidateCodeShortMessage("13259799861","login","789456");
    }

    @Test
    public void test2(){
        validateCodeService.checkValidateCode("13259799861","login","789456");
    }
}
